package com.tedu.egmvc8.mapper;

import com.tedu.egmvc8.pojo.entity.Notice;
import com.tedu.egmvc8.pojo.vo.NoticeDetailVO;
import com.tedu.egmvc8.pojo.vo.NoticeListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NoticeMapper {
    int  inster(Notice notice);

    List<NoticeListVO> list(@Param("title") String title, @Param("type") Integer type);

    NoticeDetailVO detail(@Param("title")String title, @Param("type")Integer type);
}
